#!/usr/bin/python

class WykopRespEntryComment:
    
    def _setData(self, Data):
        
        self.id = Data['id']
        self.author  = Data['author']
        self.author_avatar = Data['author_avatar']
        self.author_avatar_med = Data['author_avatar_med']
        self.author_avatar_lo = Data['author_avatar_lo']
        self.author_group = Data['author_group'] 
        self.date = Data['date'] 
        self.body = Data['body'] 
        self.vote_count = Data['vote_count'] 
        self.voters = Data['voters'] 
        self.embed = Data['embed'] 
        
        
        
    def _normalizeData(self, Data):

        Obj = WykopRespEntryComment()
        Obj._setData(Data)
        return Obj
    
    def _normalizeDatatoList(self,Data):
        List = []
        for El in Data:
            Obj = WykopRespEntryComment()
            Obj._setData(El)
            List.append(Obj)
        return List